#/bin/bash
<<<<<<< HEAD
# git 提交代码脚本

# 初始化 git
if [ ! -d ".git" ]; then
  git init
git config --global --add safe.directory "*"
git remote add origin git@gitcode.com:heqiao_linux/make_ffmpeg.git
#用户配置
git config --global user.name "qq_29578241"
git config --global user.email "qq_29578241@noreply.gitcode.com"
git branch -m main

fi

git add .
git commit -m "ffmpeg make 工程推送"

=======
#cd /mnt/nas/work/make/git-work/build/lame-3.100
#用户配置
git config --global user.name "qq_29578241"
git config --global user.email "qq_29578241@noreply.gitcode.com"
git add .
git commit -m "ffmpeg make 工程推送"
git branch -m main
>>>>>>> origin/main
git push -u origin main
# git 克隆判断是否成功
if [ $? -eq 0 ]; then
    echo "git 推送成功"
else
    echo "git 推送失败"

fi